package com.pocket.demo.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pocket.demo.base.api.PageResult;
import com.pocket.demo.business.controller.vo.HotelPageReqVO;
import com.pocket.demo.business.controller.vo.HotelSaveReqVO;
import com.pocket.demo.business.po.Hotel;

/**
 * @author cookie.
 **/
public interface HotelService extends IService<Hotel> {

    public void syncToElastic();

    public Hotel add(HotelSaveReqVO hotelSaveReqVO);

    public Integer delete(Integer hotelId);

    public Boolean update(HotelSaveReqVO hotelSaveReqVO);

    public Hotel getById(Integer hotelId);

    public PageResult<Hotel> queryByPage(HotelPageReqVO hotelPageReqVO);
}
